package cn.iot.controller.sys;

import cn.iot.common.dto.ResultMsg;
import cn.iot.sys.service.SysPoliticalService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sys/political")
public class SysPoliticalController {
    @Autowired
    private SysPoliticalService sysPoliticalService;
    private Logger logger = LoggerFactory.getLogger(getClass());

    @PostMapping("getSysPoliticalList")
    public ResultMsg getSysPoliticalList(){
        logger.info("SysPoliticalController getSysPoliticalList start...");
        ResultMsg msg = sysPoliticalService.getSysPoliticalList();
        logger.debug("SysPoliticalController getSysPoliticalList msg{}",msg);
        return msg;
    }
}
